.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  position: relative;
}

/* 头部右侧图标 */
.headerRight {
  position: absolute;
  top: 0;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 45px;
}

.headerIcon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

/* 标签页 */
.tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 16px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab:hover {
  color: #333;
}

.activeTab {
  color: #1890ff;
  font-weight: 500;
}

.activeTab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #1890ff;
  border-radius: 1px;
}

/* 患者信息卡片 */
.patientCard {
  background: white;
  margin: 16px;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.patientInfo {
  flex: 1;
}

.patientName {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.patientId {
  font-size: 14px;
  color: #666;
}

.switchBtn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.switchBtn:hover {
  background: #e9ecef;
}

.switchIcon {
  font-size: 12px;
  color: #666;
}

.switchText {
  font-size: 14px;
  color: #666;
}

/* 订单列表 */
.orderList {
  padding: 0 16px 16px;
}

.orderCard {
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.orderCard::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1890ff;
}

/* 订单头部 */
.orderHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.orderTitle {
  flex: 1;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
  margin-right: 12px;
}

.statusTag {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.statusPending {
  background: #fff2e8;
  color: #fa8c16;
  border: 1px solid #ffd591;
}

.statusApproved {
  background: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.statusRejected {
  background: #fff1f0;
  color: #f5222d;
  border: 1px solid #ffccc7;
}

.statusCancelled {
  background: #f5f5f5;
  color: #999;
  border: 1px solid #d9d9d9;
}

/* 订单信息 */
.orderInfo {
  padding: 12px 16px 12px 20px;
}

.infoRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.infoLabel {
  font-size: 14px;
  color: #666;
}

.infoValue {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* 订单操作 */
.orderActions {
  padding: 12px 16px 16px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cancelBtn {
  padding: 8px 16px;
  background: white;
  color: #666;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.cancelBtn:hover {
  border-color: #999;
  color: #333;
}

.payBtn {
  padding: 8px 16px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.payBtn:hover {
  background: #40a9ff;
}

.rejectedInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rejectedText {
  font-size: 14px;
  color: #f5222d;
  font-weight: 500;
}

.reasonText {
  font-size: 12px;
  color: #999;
}

/* 空状态 */
.emptyState {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.emptyIcon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.emptyText {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.emptySubText {
  font-size: 14px;
  color: #999;
}

/* 模态框样式 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 0;
}

.modal {
  background: white;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modalTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.modalClose {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.modalClose:hover {
  background-color: #f5f5f5;
}

.patientList {
  max-height: 300px;
  overflow-y: auto;
}

.patientItem {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.patientItem:hover {
  background-color: #f8f9fa;
}

.patientItem:last-child {
  border-bottom: none;
}

.selectedPatient {
  background-color: #e6f7ff !important;
}

.patientItem .patientName {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-bottom: 4px;
}

.patientItem .patientId {
  font-size: 12px;
  color: #999;
}

.modalFooter {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
}

.addPatientBtn {
  width: 100%;
  height: 40px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.addPatientBtn:hover {
  background: #40a9ff;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .container {
    padding-bottom: 0;
  }
  
  .tabs {
    padding: 0 12px;
  }
  
  .tab {
    padding: 14px 6px;
    font-size: 13px;
  }
  
  .patientCard {
    margin: 12px;
    padding: 14px;
  }
  
  .orderList {
    padding: 0 12px 12px;
  }
  
  .orderCard {
    margin-bottom: 10px;
  }
  
  .orderHeader {
    padding: 14px 14px 10px 18px;
  }
  
  .orderInfo {
    padding: 10px 14px 10px 18px;
  }
  
  .orderActions {
    padding: 10px 14px 14px 18px;
  }
  
  .modal {
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
  }
  
  .modalHeader {
    padding: 20px;
  }
  
  .modalTitle {
    font-size: 18px;
  }
  
  .patientItem {
    padding: 18px 20px;
  }
  
  .modalFooter {
    padding: 20px;
  }
  
  .addPatientBtn {
    height: 44px;
    font-size: 15px;
  }
}

/* 滚动条样式 */
.patientList::-webkit-scrollbar {
  width: 4px;
}

.patientList::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.patientList::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.patientList::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

